package cn.wang.open.sso.server.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.wang.open.sso.dao.mapper.UserMapper;
import cn.wang.open.sso.dao.model.User;

/**
 * 用户信息
 */
@Service
public class UserService {

	private static Logger logger = LoggerFactory.getLogger(UserService.class);

	@Autowired
	UserMapper userMapper;
	
	public User selectUserByUsername(String username) {
		User eduUserInfo = new User();
		eduUserInfo.setUserName(username);
		return userMapper.selectOne(eduUserInfo);
	}


}
